from myspider.processor import BaseProcessor


class MysqlProcessor(BaseProcessor):
    def __init__(self):
        self.fp = open("./data.txt", "w")

    def process(self, item):
        values = list(item.values())
        self.fp.write(",".join(values) + "\n")
        return item
